package com.example.boss.db.gen;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by 打好boss on 2018/6/11.
 */

@Entity(indexes = {
        @Index(value = "tag, tag ASC", unique = true)
})

public class diaryTag {
    @Id(autoincrement = true)
    private Long id;

    @NotNull
    private String tag;  //标签

public String getTag() {
        return this.tag;
}

public void setTag(String tag) {
        this.tag = tag;
}

public Long getId() {
        return this.id;
}

public void setId(Long id) {
        this.id = id;
}

@Generated(hash = 990904906)
public diaryTag(Long id, @NotNull String tag) {
        this.id = id;
        this.tag = tag;
}

@Generated(hash = 1108720307)
public diaryTag() {
}


 }